﻿using System.Collections;
using UnityEngine;


public class QuickCoroutine : BaseManager<QuickCoroutine>
{
    GameObject _root;
    MonoBehaviour _coroutineMono;//用来跑协程
    public void Init()
    {
        _root = new GameObject("QuickCoroutine");
        GameObject.DontDestroyOnLoad(_root);
        _coroutineMono = _root.AddComponent<MonoBehaviour>();
    }
    public Coroutine StartCoroutine(IEnumerator routine)
    {
        return _coroutineMono.StartCoroutine(routine);
    }
}
